package com.example.backend.mapper;

import com.example.backend.pojo.Manage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ManageMapper {
    @Select("select * from manage where managename=#{managename}")
    Manage getByName(String managename);

    @Insert("insert into manage (managename,password) values (#{name},#{password})")
    void register(String name, String password);
}
